#ifndef __DRIVER_UART_H__
#define __DRIVER_UART_H__

#include "main.h"
#include "ring_buffer.h"
#include "input_net.h"
#include "input_voice.h"

extern UART_HandleTypeDef huart1;
extern UART_HandleTypeDef huart2;
extern UART_HandleTypeDef huart3;


void MX_USART1_UART_Init(void);
void MX_USART2_UART_Init(void);
void MX_USART3_UART_Init(void);
void USART3_SendBytes(char *buf, int len);
int USART3_ReadBytes(char *buf);
void USART3_RingbufferInit(void);
void GetNetDataFromISR(GetNetData esp8266callback);
void GetVoiceDataFromISR(GetSu03tData su03tcallback);
void USART2_SendBytes(int *buf, int len);

#endif
